package comum;

import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;

public class Util {
	
	public Util() {}
	
	public static FileInputStream getFile(String caminho){
		return getStream(new File(caminho));
	}
	
	public static FileInputStream getStream(File file){
		try {
			return new FileInputStream(file);
		} catch (FileNotFoundException e) {
			e.printStackTrace();
			return null;
		}
	}
}
